@(projectId: Long, testSuites: List[Resource])

@import play.i18n._

<table class="test-suites-list">
	<tr>
		<th class="test-suite-name">@Messages.get("view.testsuites.list.name.column")</th>
		<th class="test-suite-description">@Messages.get("view.testsuites.list.desc.column")</th>
		<th class="test-suite-created-date">@Messages.get("view.testsuites.list.createddate.column")</th>
		<th class="test-suite-last-modified-date">@Messages.get("view.testsuites.list.lastmodified.column")</th>
		<th class="test-suite-run-tests">@Messages.get("view.testsuites.list.tests.column")</th>
	</tr>
	@for(testSuite <- testSuites) {
		<tr>
			<td class="test-suite-name"><a href="@routes.TestSuites.editTestSuite(projectId, testSuite.getId())" title="@Messages.get("view.testsuites.list.name.title")">@testSuite.getName()</a></td>
			<td class="test-suite-description">@testSuite.getDescription()</td>
			<td class="test-suite-created-date">@testSuite.getCreatedDate().format(play.Play.application().configuration().getString("datetime.format"))</td>
			<td class="test-suite-last-modified-date">@testSuite.getLastModifiedDate().format(play.Play.application().configuration().getString("datetime.format"))</td>
			<td class="test-suite-run-tests">
				@if(testSuite.getProject().getDefaultConfiguration() != null) {
					<a href="@routes.TestSuites.runTestsWithDefaultConfig(projectId, testSuite.getId())" class="run-tests open-popup" title="@Messages.get("view.testsuites.list.test.title") (@testSuite.getProject().getDefaultConfiguration().getName())">@Messages.get("view.testsuites.list.test.link") &raquo;</a>
				}
			</td>
		</tr>
	}
</table>
